package com.itheima.d3_collection_traverse;

public class Movie {
    //    new Movie("《肖生克的救赎》" , 9.7 ,  "罗宾斯")
   private String name;
   private double score;
   private String actor;

    public Movie() {
    }

    public Movie( String name, double score,String actor) {
        this.actor = actor;
        this.name = name;
        this.score = score;
    }

    public String getActor() {
        return actor;
    }

    public void setActor(String actor) {
        this.actor = actor;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "Movie{" +
                "actor='" + actor + '\'' +
                ", name='" + name + '\'' +
                ", score=" + score +
                '}';
    }
}

